package com.push.graph.dao;


import com.push.graph.pojo.CourseSchedule;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CourseScheduleRepository extends Neo4jRepository<CourseSchedule,Long> {
    @Query("MATCH (n:CourseSchedule) where n.classGrade contains $classGrade RETURN n")
    List<CourseSchedule> findByClassGrade(@Param("classGrade") String classGrade);
}
